<?php
namespace app\common\model;
use app\common\model\CommonModel;
use app\common\model\AppModel;
class TemplateModel extends CommonModel{
    protected  $name = 'template';
    protected  $pk   = 'template_id';
    protected  $type = [
        'style' => 'array'
    ];
    public function app(){
        return $this->hasOne(AppModel::class,'app_id','app_id');
    }
    
}
